def test1():
    try:
        print(1/0)
    except OSError:
        print("zero divide")
    except:
        print("failed to catch 0 divide")


def test2():
    try:
        assert 1 == 0
    except OSError:
        print("zero divide")
    except:
        print("failed to catch 0 divide")


class A:
    pass


def test3():
    try:
        print(A.b)
    except OSError:
        print("no property")
    except:
        print("failed to catch no property")


def test4():
    try:
        f = open("ssss.txt")
    except OSError:
        print("not exist file")
    except:
        print("failed to catch no file")


if __name__ == '__main__':
    test1()  # failed to catch 0 divide
    test2()  # failed to catch 0 divide
    test3()  # failed to catch no property"
    test4()  # not exist file
